<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/static/css/login.css"/>
    <link rel="stylesheet" type="text/css" href="/static/css/font-awesome.css"/>
    <link rel="stylesheet" type="text/css" href="/static/css/font-awesome.min.css"/>
    <style>

    </style>
</head>
<body>


<div class="layui-card">
    <div class="layui-card-header">课程信息</div>
    <div class="layui-card-body">
    <div class="layui-form">
        <table class="layui-table">
                    <tr>
                        <th >ID</th>
                        <th width="75">时间段</th>
                        <th width="100">星期一</th>
                        <th width="100">星期二</th>
                        <th width="100">星期三</th>
                        <th width="100">星期四</th>
                        <th width="100">星期五</th>
                        <th width="100">星期六</th>
                        <th width="100">星期日</th>
                        <th>操作</th>
                    </tr>
                    {% for course in course_list %}
                    <tr>
                        <td>{{ course.id }}</td>
                        <td>{{ course.time }}</td>
                        <td>{{ course.xing1 }}</td>
                        <td>{{ course.xing2 }}</td>
                        <td>{{ course.xing3 }}</td>
                        <td>{{ course.xing4 }}</td>
                        <td>{{ course.xing5 }}</td>
                        <td>{{ course.xing6 }}</td>
                        <td>{{ course.xing7 }}</td>
                        <td>
                            <button type="button" class="layui-btn layui-btn-sm layui-btn-normal"><a href="/course/edit?option=update&id={{ course.id }}">编辑</a></button>
                            <button type="button" class="layui-btn layui-btn-sm layui-btn-danger"><a href="/course/remove?id={{ course.id }}">删除</a></button>
                        </td>
                    </tr>
                    {% endfor %}
                </table>
    </div>

    </div>
</div>

    <link rel="stylesheet" href="/static/layui/css/layui.css" type="text/css">
    <script src="/static/layui/layui.js" type="text/javascript"></script>
</body>
</html>